package com.ag.zrt.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.ag.common.BaseAction;
import com.ag.zrt.service.TaskStatusService;
import com.ag.bean.TbTaskStatus;
@Controller("findTaskStatusAction")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class FindTaskStatusAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8160504688846674729L;

	@Resource(name="TaskStatusService")
	private TaskStatusService taskStatusService;
	private List<TbTaskStatus> taskStatusList;

	public List<TbTaskStatus> getTaskStatusList() {
		return taskStatusList;
	}

	public void setTaskStatusService(TaskStatusService taskStatusService) {
		this.taskStatusService = taskStatusService;
	}

	@Override
	public String execute() throws Exception {
		taskStatusList = (List<TbTaskStatus>) taskStatusService.findAll();
		return "find_ts_succ";
	}

}
